﻿<?php
	require_once("class.phpmailer.php");

	$nome = $_POST['nome'];
	$email = $_POST['email'];
	$msg = $_POST['msg'];

	$mail = new PHPMailer();

	$mail->From = $email;
	$mail->FromName = $nome;

	$mail->Subject = "Mensagem - fiplan.com.br";
	$mail->AddAddress("fiplan@fiplan.com.br", "FIPLAN");

	$mail->Body = "- Enviado por: $nome ($email)\n\n- $msg";

	if(!$mail->Send())
		echo "Erro: " . $mail->ErrorInfo;
	else
		echo "<script type='text/javascript'>window.location.href = '/index.shtml';</script>";
?>